<script setup>
import { ref, computed } from 'vue';
import { marked } from 'marked';
import { defineProps } from 'vue';

const props = defineProps({
  content: {
    type: String,
    required: true
  }
});

const compiledMarkdown = computed(() => {
  return marked(props.content);
});
</script>

<template>
  <div v-html="compiledMarkdown"></div>
</template>

<style scoped>
div {
  margin-left: 15px;
  margin-right: 15px;
}
</style>